package com.aorise.model.expose;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import java.io.Serializable;
import java.util.List;

/**
 * @Auther: zhouhao
 * @Date: 2019/7/11
 * @Description:
 */
@Validated
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
public class DevState implements Serializable {

    @ApiModelProperty(name = "CMD",value = "PutDevMsg" )
    private String CMD;

    @ApiModelProperty(name = "No",value = "IMB编号，编号唯一"  )
    private String No;

    @ApiModelProperty(name = "Conect",value = "网络状态,在线:true,离线:false"  )
    private boolean Conect;

    @ApiModelProperty(name = "Environ",value = "箱内环境状态"  )
    private Environ Environ;

    @ApiModelProperty(name = "Door",value = "箱门信息"  )
    private Door Door;

    @ApiModelProperty(name = "SPD",value = "防雷器状态"  )
    private Spd SPD;

    @ApiModelProperty(name = "eSW",value = "自动重合闸状态"  )
    private ESW eSW;

    @ApiModelProperty(name = "Index",value = "指示灯/其他信号状态"  )
    private Index Index;

    @ApiModelProperty(name = "EXT",value = "外接设备状态(继电器控制)"  )
    private EXT EXT;

    @ApiModelProperty(name = "Battery",value = "电池容量百分比  (单位%)"  )
    private Integer Battery;

    @ApiModelProperty(name = "AC220",value = "市电正常:0,掉电: 1"  )
    private Integer AC220;

    @ApiModelProperty(name = "DC12",value = "DC12V电源正常:0,掉电:1"  )
    private Integer DC12;

    @ApiModelProperty(name = "Wireless",value = "无线网络状态(选配模块)"  )
    private Wireless Wireless;

    @ApiModelProperty(name = "Time",value = "上传时间,格式:YYYY-MM-DD HH:MM:SS"  )
    private String Time;

    @JsonProperty("CMD")
    public String getCMD() {
        return CMD;
    }

    @JsonProperty("CMD")
    public void setCMD(String CMD) {
        this.CMD = CMD;
    }

    @JsonProperty("No")
    public String getNo() {
        return No;
    }

    @JsonProperty("No")
    public void setNo(String no) {
        No = no;
    }

    @JsonProperty("Conect")
    public boolean isConect() {
        return Conect;
    }

    @JsonProperty("Conect")
    public void setConect(boolean conect) {
        Conect = conect;
    }

    @JsonProperty("Environ")
    public Environ getEnviron() {
        return Environ;
    }

    @JsonProperty("Environ")
    public void setEnviron(Environ environ) {
        Environ = environ;
    }

    @JsonProperty("Door")
    public Door getDoor() {
        return Door;
    }

    @JsonProperty("Door")
    public void setDoor(Door door) {
        Door = door;
    }

    @JsonProperty("SPD")
    public Spd getSPD() {
        return SPD;
    }

    @JsonProperty("SPD")
    public void setSPD(Spd SPD) {
        this.SPD = SPD;
    }

    @JsonProperty("eSW")
    public ESW geteSW() {
        return eSW;
    }

    @JsonProperty("eSW")
    public void seteSW(ESW eSW) {
        this.eSW = eSW;
    }

    @JsonProperty("Index")
    public Index getIndex() {
        return Index;
    }

    @JsonProperty("Index")
    public void setIndex(Index index) {
        Index = index;
    }

    @JsonProperty("EXT")
    public EXT getEXT() {
        return EXT;
    }

    @JsonProperty("EXT")
    public void setEXT(EXT EXT) {
        this.EXT = EXT;
    }

    @JsonProperty("Battery")
    public Integer getBattery() {
        return Battery;
    }

    @JsonProperty("Battery")
    public void setBattery(Integer battery) {
        Battery = battery;
    }

    @JsonProperty("AC220")
    public Integer getAC220() {
        return AC220;
    }

    @JsonProperty("AC220")
    public void setAC220(Integer AC220) {
        this.AC220 = AC220;
    }

    @JsonProperty("DC12")
    public Integer getDC12() {
        return DC12;
    }

    @JsonProperty("DC12")
    public void setDC12(Integer DC12) {
        this.DC12 = DC12;
    }

    @JsonProperty("Wireless")
    public Wireless getWireless() {
        return Wireless;
    }

    @JsonProperty("Wireless")
    public void setWireless(Wireless wireless) {
        Wireless = wireless;
    }

    @JsonProperty("Time")
    public String getTime() {
        return Time;
    }

    @JsonProperty("Time")
    public void setTime(String time) {
        Time = time;
    }
}
